#!/bin/bash
#
read -p "磁盘名称：" disk_name

df -hT | grep "$disk_name" >/dev/null
if [ $? -ne 0 ];then
	echo "磁盘$disk_name不存在"
	exit 67
fi

usage=$(df -hT | grep "${disk_name}$" | awk '{print $6}' | awk -F% '{print $1}')
if (($usage > 70))
then
	echo "警告"
else
	echo "正常"
fi
